#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	//int n = 8;//1101
	//int count = 0;
	/*while (n)
	{
		n = n & (n - 1);
		count++;
	}*/
	/*for (int i = 0; i < 32; i++)
	{
		if ((n>>i)&1 == 1)
			count++;
	}*/
	/*while (n)
	{
		if (n % 2 == 1)
		{
			count++;
		}
		n /= 2;
	}*/
	//printf("%d\n",count);
	int n = 0;
	scanf("%d",&n);
	if ((n & (n - 1)) == 0)
	{
		printf("Yes\n");
	}
	return 0;
}

//10000011
//11111111 11111111 11111111 10000011
//10000000 00000000 00000000 01111101
//-29+96
//-125